package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dao.history.HumidityHisMapper;
import com.bbzn.device.client.dataobject.HumidityHis;
import com.bbzn.device.client.service.HumidityHisService;
@Service
public class HumidityHisServiceImpl implements HumidityHisService{

    @Resource
    private HumidityHisMapper humidityHisMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return humidityHisMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HumidityHis record) {
        return humidityHisMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(HumidityHis record) {
        return humidityHisMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(HumidityHis record) {
        return humidityHisMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(HumidityHis record) {
        return humidityHisMapper.insertSelective(record);
    }

    @Override
    public HumidityHis selectByPrimaryKey(Long id) {
        return humidityHisMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HumidityHis record) {
        return humidityHisMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HumidityHis record) {
        return humidityHisMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HumidityHis> findByAll(HumidityHis humidityHis) {
        return humidityHisMapper.findByAll(humidityHis);
    }

    @Override
    public int deleteByImei(String imei) {
        return humidityHisMapper.deleteByImei(imei);
    }

    @Override
    public int updateBatch(List<HumidityHis> list) {
        return humidityHisMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<HumidityHis> list) {
        return humidityHisMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<HumidityHis> list) {
        return humidityHisMapper.batchInsert(list);
    }

}
